package com.drug.mapper;

import com.drug.domain.DrugInformation;
import com.drug.domain.SdiDiInf;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SdiDiInfMapper {
    int deleteByPrimaryKey(Integer sdiId);

    int insert(SdiDiInf record);

    int insertSelective(SdiDiInf record);

    SdiDiInf selectByPrimaryKey(Integer sdiId);

    int updateByPrimaryKeySelective(SdiDiInf record);

    int updateByPrimaryKey(SdiDiInf record);

    /**
     * 添加供货
     * @param sdiDiInf
     * @return
     */
    int insertSdi(SdiDiInf sdiDiInf);
    List<SdiDiInf> selectDISdi(@Param("drugInformation") DrugInformation drugInformation, @Param("leftStr") String lefPprice, @Param("rightStr")String rightPrice);

    Integer updateSdi(int sdiId);
	
	//提交审核结果(修改审核结果的状态)
    int updateSubmit(SdiDiInf sdiDiInf);

    Integer selectDiId(Integer str);

    void updateSdm(Integer integer);
}